package com.koron.order.common.mapper;

import com.koron.order.common.bean.po.OrderWorkDeptPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工单作业单位(OrderWorkDept)表数据库访问层
 *
 * @author zhouj
 * @since 2022-02-17 15:04:45
 */
public interface OrderWorkDeptMapper {

    int insertOrUpdate(OrderWorkDeptPo orderWorkDept);

    int insertOrUpdateBatch(@Param("list") List<OrderWorkDeptPo> orderWorkDeptList);

    int insert(OrderWorkDeptPo orderWorkDept);

    int insertBatch(@Param("list") List<OrderWorkDeptPo> orderWorkDeptList);

    int update(OrderWorkDeptPo orderWorkDept);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    OrderWorkDeptPo queryById(String id);

    List<OrderWorkDeptPo> queryList(OrderWorkDeptPo orderWorkDept);

    int deleteByDispatchId(String dispatchId);

    int deleteByDispatchIdOrderId(@Param("dispatchId") String dispatchId, @Param("orderId") String orderId);

    List<OrderWorkDeptPo> queryByOrderIds(@Param("orderIds") List<String> orderIds);

}